package com.hzxcloudserviceb.context;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * Created by huzuxing on 2021/4/25.
 */
@RestControllerAdvice
public class ModelBind {

    @ModelAttribute
    public void DataBind(Model model) {
        model.addAttribute("sign", "sign_test");
    }
}
